<?php

/*
|--------------------------------------------------------------------------
| 币库路由
|--------------------------------------------------------------------------
|
*/

$router->get('/', "IndexController@index");

//数字货币列表
$router->get('/coin', "IndexController@coin");
//数字货币详情
$router->get('/coin/details/{id}', "IndexController@details");
//基础货币货币汇率
$router->get('/exchange_rate/{base}', "CurrenciesController@index");
//基础货币列表
$router->get('/currencies', "CurrenciesController@currencies");

//获取所有语言包
$router->get('/language', "LanguageController@index");

//交易所列表
$router->get('/markets', "MarketsController@index");
//交易所列表
$router->get('/market/{name}', "MarketsController@details");


/**
 * K线图
 * market	    QueryString	必选:是	交易所名称
 * symbol_pair	QueryString	必选:是	交易对
 * type	        QueryString	必选:否	K线类型ENUM[5m,15m,30m,1h,6h,1d],默认5m
 * 
 */
$router->get('/kline/{market}/{symbol_pair}/{type}', "KlineController@index");